package com.mini.mysql.repository;

import com.mini.mysql.model.BusinessTeacherInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @author zhangxiaobin
 * @title: BusinessTeacherInfoRepository
 * @date 2019/10/2715:58
 */
@Repository
public interface BusinessTeacherInfoRepository extends JpaRepository<BusinessTeacherInfo, Long>, JpaSpecificationExecutor<BusinessTeacherInfo> {

    List<BusinessTeacherInfo> findByUpdateTimeBetweenOrderByUpdateTimeAsc(Date startTime, Date endTime);

    BusinessTeacherInfo findByTeacherId(Long teacherId);
}
